﻿using System.Data.Entity;

namespace Pyramid.Models
{
	public class PyramidDbContext : DbContext
	{
		public PyramidDbContext()
			: base("PyramidDbContext")
		{
			Configuration.LazyLoadingEnabled = false;
		}

		#region 系统模块

		public DbSet<Account> Accounts { get; set; }
		public DbSet<Role> Roles { get; set; }
		public DbSet<WebObject> WebObjects { get; set; }
		public DbSet<ApplicationLog> ApplicationLogs { get; set; }

		#endregion

		#region 基础数据

		public DbSet<Department> Departments { get; set; }
		public DbSet<StaffPosition> StaffPositions { get; set; }
		public DbSet<Staff> Staves { get; set; }
		public DbSet<MarketZone> MarketZones { get; set; }

		#endregion

		#region 工资管理

		public DbSet<SalaryPart> SalaryParts { get; set; }
		public DbSet<StaffSalarySetMaster> StaffSalarySetMasters { get; set; }
		public DbSet<StaffSalarySetDetail> StaffSalarySetDetails { get; set; }

		public DbSet<StaffAchievementGatherMaster> StaffAchievementGatherMasters { get; set; }
		public DbSet<StaffAchievementGatherDetail> StaffAchievementGatherDetails { get; set; }

		public DbSet<AttendanceMaster> AttendanceMasters { get; set; }
		public DbSet<AttendanceDetail> AttendanceDetails { get; set; }

		public DbSet<PerformanceMaster> PerformanceMasters { get; set; }
		public DbSet<PerformanceDetail> PerfomanceDetails { get; set; }

		#endregion

		#region 财务管理

		public DbSet<FinanceProject> FinanceProjects { get; set; }
		public DbSet<FinanceAccount> FinanceAccounts { get; set; } 
		public DbSet<PayeeRecord> PayeeRecords { get; set; }
		public DbSet<PayeeVerify> PayeeVerifies { get; set; } 

		public DbSet<CustomerCapital> CustomerCapitals { get; set; }

		public DbSet<StaffSalaryMaster> StaffSalaryMasters { get; set; } 
		public DbSet<StaffSalaryDetail> StaffSalaryDetails { get; set; }
		public DbSet<StaffSalarySummary> StaffSalarySummaries { get; set; } 

		#endregion

		#region 管理中心

		public DbSet<AdminCenter> AdminCenters { get; set; }

		#endregion

		#region 会员中心

		public DbSet<MemberCenter> MemberCenters { get; set; }

		#endregion

		#region 顾客健康管理

		public DbSet<Customer> Customers { get; set; }

		public DbSet<HumanBodySystem> HumanBodySystems { get; set; }
		public DbSet<HealthCondition> HealthConditions { get; set; }

		public DbSet<CustomerHealthArchiveMaster> CustomerHealthArchiveMasters { get; set; }
		public DbSet<ExpertDiagnosisRecord> ExpertDiagnosisRecords { get; set; }
		public DbSet<TreatmentPlan> TreatmentPlans { get; set; }
		public DbSet<CustomerHealthManageRecord> CustomerHealthManageRecords { get; set; }
		public DbSet<ReturnVisitRecord> ReturnVisitRecords { get; set; }

		public DbSet<ConsumeItem> ConsumeItems { get; set; } 
		public DbSet<ConsumeRecord> ConsumeRecords { get; set; } 

		#endregion

		#region CMS

		public DbSet<Channel> Channels { get; set; }
		public DbSet<Article> Articles { get; set; }

		#endregion
	}
}